import routerMap from './router.map'
import {parseRoutes} from '@/utils/routerUtil'

// 异步路由配置
const routesConfig = [
  'login',
  'root',
  {
    router: 'exp404',
    path: '*',
    name: '404'
  },
  {
    router: 'exp403',
    path: '/403',
    name: '403'
  },
  {
    router: 'authorisation',
    path: '/authz/oauth2approve',
    name: 'authorisation'
  },
  {
    router: 'schoolTimetable',
    path: '/schoolTimetable',
    name: '课程表'
  },
  {
    router: 'callback',
    path: '/callback/:id',
    name: 'callback'
  },
  {
    router: 'loading',
    path: '/loading',
    name: 'loading'
  },
]

const options = {
  routes: parseRoutes(routesConfig, routerMap),
  mode: 'history',
  base:'organization-centre'
}

export default options
